package vip.ifmm.lehouse.common.enums;

/**
 * 通用响应状态码
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/06/16 20:34:15</p>
 */
public enum CommonStatus implements Statable {

    SUCCESS(Statable.SUCCESS_CODE, Statable.SUCCESS_MSG),
    SERVICE_IS_UNAVAILABLE(-10, "很抱歉，服务暂时不可用，请稍后重试！");

    private int code = Statable.SUCCESS_CODE;
    private String msg = Statable.SUCCESS_MSG;

    CommonStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
